package com.sdp.right.db.sys_oper_log.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdp.right.db.sys_oper_log.mapper.SysOperLogMapper;
import com.sdp.right.db.sys_oper_log.service.ISysOperLogService;
import com.sdp.right.entity.SysOperLog;
import com.sdp.right.service.RemoveSystemService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsp
 * @since 2023-10-19
 */
@Service
@DS(value="right")
public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements ISysOperLogService,RemoveSystemService {

	@Override
	public void removeBySystemNo(String systemNo) {
		LambdaQueryWrapper<SysOperLog> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(SysOperLog::getSystemNo, systemNo);
		remove(queryWrapper);
		
	}

}
